package com.hoodbrains.insideloc.maps;

import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Point;
import android.graphics.Rect;

public class DrawingTools {

	static void drawRectangle(Canvas canvas,Paint paint,Point pointStart,int width,int height){
		Rect toDraw = new Rect(pointStart.x,pointStart.y,pointStart.x+width,pointStart.y+height);
		canvas.drawRect(toDraw,paint);
	}
	
	static void drawRectangle(Canvas canvas,Paint paint,Point pointStart,Point pointStop){
		Rect toDraw = new Rect(pointStart.x,pointStart.y,pointStop.x,pointStop.y);
		canvas.drawRect(toDraw,paint);
	}
	
	static void drawLine(Canvas canvas,Paint paint,Point pointStart,Point pointStop){
		canvas.drawLine(pointStart.x,pointStart.y,pointStop.x,pointStop.y,paint);
	}
}
